{// 引入标签库 }
<tagLib name="html" />
<include file="Public:header" />
<php>
function get_image($url){
return '<a href="'.$url.'" target="_blank"><img src="'.$url.'" alt="" style="width:30px;height:30px;" /></a>';
}
</php>
<script>
    //编辑跳转
    function prop_item(id)
    {
        location.href = ROOT + "?" + VAR_MODULE + "=" + MODULE_NAME + "&" + VAR_ACTION + "=prop_item&id=" + id;
    }
</script>
<div class="main">
    <div class="main_title_list"><div class="list-line-ico"></div>守护列表</div>
    <div class="search_row">
        <form name="search" action="__APP__" method="get">
            名称：<input type="text" class="textbox" name="name" value="{:trim($_REQUEST['name'])}" />
            <input type="hidden" value="BmGuardians" name="m" />
            <input type="hidden" value="index" name="a" />
            <input type="submit" class="button" value="{%SEARCH}" />
        </form>
    </div>
    <html:list
        id="dataTable"
        style="dataTable"
        name="prop"
        checkbox="true"
        action="true"
        datasource="list"
        show="id:{%ID}
        ,name:名称
        ,icon|get_image:图标
        ,score:积分
        ,diamonds:消费钻石
        ,coins:消费游戏币
        ,is_effect|get_is_effect=$prop['id']:{%IS_EFFECT}
        ,sort|get_sort=$prop['id']:{%SORT}"
        actionlist="edit:编辑,foreverdel:删除" />
    <table class="dataTable">
        <tbody>
        <td colspan="9">
            <input type="button" class="button button-add" value="{%ADD}" onclick="add();" />
            <input type="button" class="button button-del" value="{%DEL}" onclick="foreverdel();" />
        </td>
        </tbody>
    </table>
    <div class="blank5"></div>
    <div class="page">{$page}</div>
</div>
<include file="Public:footer" />